<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix='c'%>
<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<%!int count = 10;

	public String printNm(int test) {

		return "Value of integer is --- " + test;

	}%>

	<%=printNm(10)%>



	<%
		for (int i = 0; i < count; i++) {
			out.print(printNm(i));
		}

		application.setAttribute("fromIndex", "I am from Index");
	%>



	<c:forEach var="i" begin="1" end="10" step="1">

		<c:out value="Value of i using JSTL is --  ${i }" />
		<br>
	</c:forEach>

	<table>

		<thead>
			<tr>
				<td>Product Name</td>
				<td>Product Price</td>
			</tr>



		</thead>
		<tbody>

			<tr>
				<td>Samsung TV</td>
				<td>500$</td>
			</tr>

		</tbody>

	</table>



</body>
</html>